using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Dimok.Data.DataSources;

namespace Data.DataSources {
	public class CollectionInfoDataSource : ObjectDataSourceBase {
		public override string SelectViewName { get { return "v_CollectionInfo"; } }
		public override string InsertViewName { get { throw new NotImplementedException(); } }
		public int LoanID { set { SetSelectParameter(LOAN_ID, value); } }
		//public string UsixID { set { SetSelectParameter(USIX_ID, value); } }
		public override DataView SelectEx(int LoanID) {
			try {
				return Select("LoanID=@LoanID", LoanID);
			} catch (Exception exc) {
				Dimok.Exceptions.ASPException.Publish(exc);
				throw exc;
			}
		}
		public DataView SelectEx(string UsixID, int CompanyID) {
			return Select("[Customer #]=@ID AND CompanyID_Raw=@CID", UsixID,CompanyID);
		}
	}
}